﻿using Kuiper.Core;

try
{
	KPSession.Init();
	KPSession.UpdateSchema([typeof(KPBaseObject).Assembly]);

	Console.ForegroundColor = ConsoleColor.Green;
	Console.WriteLine($"Update Schema Successfully!");
}
catch (Exception ex)
{
	Console.ForegroundColor = ConsoleColor.Red;
	Console.WriteLine($"Update Schema Failed: {ex.Message}");
}
finally
{
	Console.ResetColor();
}

Console.ReadKey();